package com.infore.qualityControl;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableEurekaClient
@EnableFeignClients
@EnableSwagger2//开启swagger2
@SpringBootApplication
public class QualityControlApplication implements CommandLineRunner{

	/**
	 * 程序启动入口
	 */
	public static void main(String[] args) {
		SpringApplication.run(QualityControlApplication.class, args);
	}
	
	
	/**
	 * springboot运行后此方法首先被调用<br/>
	 * 实现CommandLineRunner抽象类中的run方法
	 */
	@Override
	public void run(String... args) throws Exception {
		System.out.println("springboot启动完成！");
	}
}
